﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.Models.Question>" %>

    <div id="pageMenuContainer">
        <ul id="pageMenu">
        <% foreach (String type in Enum.GetNames(typeof(dbPoll_Application.Models.QuestionType))) { 
               if (type != "None") {
                   if (type == Model.type.ToString()) { %>
                       <li><%= type %></li>
                   <% }
                   else { %>
                       <li><%= Html.ActionLink(type, "Edit" + type, new { questionID = Model.questionID, questionNumber = Model.questionNumber, pollID = ViewData["pollID"], pollName = ViewData["pollName"] }) %></li>
                   <% }
               }
           } %>
        </ul>
    </div>